package com.heima.pojo.dto;

import lombok.Data;

/**
 * @author ljk74
 */
@Data
public class PageDto {
    //页码
    private Integer pageIndex;
    //每页数据量
    private Integer pageSize;

    public void check() {
        if (pageIndex <= 0) {
            pageIndex = 1;
        }
        if (pageSize <= 0 || pageSize > 100){
            pageSize = 10;
        }
    }
}
